package com.sleepingcat.ft_jetpack

import com.cat.android.lib_base.base.RouterFragment
import com.cat.android.lib_ui.ext.onClick
import com.cat.android.plugin_navigation_runtime.NavDestination
import com.sleepingcat.ft_jetpack.databinding.FragmentJetpackMainBinding
import com.sleepingcat.lib_common.const.Routes

/**
 * @作者 志浩
 * @时间 2025/3/11 22:46
 * @描述 TODO
 */
@NavDestination(type = NavDestination.NavType.Fragment, route = Routes.Jetpack.JETPACK_MAIN)
class JetpackMainFragment : RouterFragment<FragmentJetpackMainBinding>() {
    private val TAG = "JetpackMainFragment"

    override fun initView() {
        super.initView()
        binding.apply {
            btnCoroutine.onClick {
                navigate(Routes.Jetpack.COROUTINE_MAIN.hashCode())
            }
            btnLifecycle.onClick {
                navigate(Routes.Jetpack.LIFE_CYCLE.hashCode())
            }
        }
    }
}